import Components from 'unplugin-vue-components/vite'
// import {ElementPlusResolver} from 'unplugin-vue-components/resolvers'
// import IconsResolver from 'unplugin-icons/resolver' //新增

export default function createComponent() {
    return Components({
        resolvers: [
            // ElementPlusResolver(),
            // // 自动注册图标组件
            // IconsResolver({ //新增
            //     enabledCollections: ['ep'],
            // }),
        ],
        // 下面这一行解决has naming conflicts with other components, ignored.
        // directoryAsNamespace: true
    })
}
